public class Test {
    public static void main(String[] args) {
        //100以内的质数。质数也教素数，只能被1和他本身整除的自然数
        for (int i = 2; i <= 100; i++) {
            boolean flag = true;
            for (int j = 2; j < i; j++) {
                if (i % j == 0) {
                    flag = false;
                }
            }
            if (flag) {
                System.out.println(i);
            }
        }
    }
}
